package top.ztf.erp.dao;

import org.apache.ibatis.annotations.Param;
import top.ztf.erp.domain.Permission;
import top.ztf.erp.domain.Role;
import top.ztf.erp.vo.PermissionVo;

import java.util.List;
import java.util.Map;

public interface RoleDao {

    List<Role> getRolePage();

    Role selectRoleById(String id);

    int save(Role role);

    List<Permission> getPermissionByRole(String roleId);

    List<Map<String, Object>> getAssignPermission(String roleId);

    int update(Role role);

    int selectRoleByName(@Param("id") String id, @Param("name") String name);

    void deleteRole(@Param("arrays") String[] arrays);
}
